Optimal. Leaf size=190 \[ \frac {45 i a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {a}}\right )}{8 d}-\frac {4 i \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {19 a^2 \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{8 d}-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.39, antiderivative size = 190, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 8, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {3634, 3679,
3681, 3561, 212, 3680, 65, 214} \begin {gather*} \frac {45 i a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {a}}\right )}{8 d}-\frac {4 i \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}+\frac {19 a^2 \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{8 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 212
Rule 214
Rule 3561
Rule 3634
Rule 3679
Rule 3680
Rule 3681
Rubi steps
\begin {align*} \int \cot ^4(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx &=-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}-\frac {1}{3} \int \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \left (-\frac {13 i a^2}{2}+\frac {11}{2} a^2 \tan (c+d x)\right ) \, dx\\ &=-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}-\frac {\int \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)} \left (\frac {57 a^3}{4}+\frac {39}{4} i a^3 \tan (c+d x)\right ) \, dx}{6 a}\\ &=\frac {19 a^2 \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{8 d}-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}-\frac {\int \cot (c+d x) \sqrt {a+i a \tan (c+d x)} \left (\frac {135 i a^4}{8}-\frac {57}{8} a^4 \tan (c+d x)\right ) \, dx}{6 a^2}\\ &=\frac {19 a^2 \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{8 d}-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}-\frac {1}{16} (45 i a) \int \cot (c+d x) (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)} \, dx+\left (4 a^2\right ) \int \sqrt {a+i a \tan (c+d x)} \, dx\\ &=\frac {19 a^2 \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{8 d}-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}-\frac {\left (45 i a^3\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {a+i a x}} \, dx,x,\tan (c+d x)\right )}{16 d}-\frac {\left (8 i a^3\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{d}\\ &=-\frac {4 i \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {19 a^2 \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{8 d}-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}-\frac {\left (45 a^2\right ) \text {Subst}\left (\int \frac {1}{i-\frac {i x^2}{a}} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{8 d}\\ &=\frac {45 i a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {a}}\right )}{8 d}-\frac {4 i \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {19 a^2 \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{8 d}-\frac {13 i a^2 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{12 d}-\frac {a^2 \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.65, size = 200, normalized size = 1.05 \begin {gather*} \frac {a^2 e^{-i (c+2 d x)} \sqrt {\frac {a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} (\cos (d x)+i \sin (d x)) \left (-384 i \sinh ^{-1}\left (e^{i (c+d x)}\right )+270 i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} e^{i (c+d x)}}{\sqrt {1+e^{2 i (c+d x)}}}\right )+\sqrt {1+e^{2 i (c+d x)}} \csc ^3(c+d x) (49-65 \cos (2 (c+d x))-26 i \sin (2 (c+d x)))\right )}{48 \sqrt {2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 925 vs. \(2 (153 ) = 306\).
time = 0.86, size = 926, normalized size = 4.87
method | result | size |
default | \(\text {Expression too large to display}\) | \(926\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 216, normalized size = 1.14 \begin {gather*} \frac {i \, a^{3} {\left (\frac {96 \, \sqrt {2} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right )}{\sqrt {a}} - \frac {135 \, \log \left (\frac {\sqrt {i \, a \tan \left (d x + c\right ) + a} - \sqrt {a}}{\sqrt {i \, a \tan \left (d x + c\right ) + a} + \sqrt {a}}\right )}{\sqrt {a}} + \frac {2 \, {\left (57 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} - 88 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a + 39 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} a^{2}\right )}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} - 3 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} a + 3 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )} a^{2} - a^{3}}\right )}}{48 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 659 vs. \(2 (145) = 290\).
time = 0.44, size = 659, normalized size = 3.47 \begin {gather*} \frac {192 \, \sqrt {2} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} - 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} - d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} + \sqrt {-\frac {a^{5}}{d^{2}}} {\left (i \, d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 192 \, \sqrt {2} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} - 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} - d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} + \sqrt {-\frac {a^{5}}{d^{2}}} {\left (-i \, d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) + 135 \, \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} - 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} - d\right )} \log \left (\frac {16 \, {\left (3 \, a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3} - 2 \, \sqrt {2} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (i \, d e^{\left (3 i \, d x + 3 i \, c\right )} + i \, d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{a}\right ) - 135 \, \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} - 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} - d\right )} \log \left (\frac {16 \, {\left (3 \, a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3} - 2 \, \sqrt {2} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (-i \, d e^{\left (3 i \, d x + 3 i \, c\right )} - i \, d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{a}\right ) + 4 \, \sqrt {2} {\left (91 i \, a^{2} e^{\left (7 i \, d x + 7 i \, c\right )} - 7 i \, a^{2} e^{\left (5 i \, d x + 5 i \, c\right )} - 59 i \, a^{2} e^{\left (3 i \, d x + 3 i \, c\right )} + 39 i \, a^{2} e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{96 \, {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} - 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} - d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 171, normalized size = 0.90 \begin {gather*} -\frac {19\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}}{8\,d\,{\mathrm {tan}\left (c+d\,x\right )}^3}-\frac {\mathrm {atan}\left (\frac {\sqrt {-a^5}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{a^3}\right )\,\sqrt {-a^5}\,45{}\mathrm {i}}{8\,d}-\frac {13\,a^2\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{8\,d\,{\mathrm {tan}\left (c+d\,x\right )}^3}+\frac {11\,a\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{3\,d\,{\mathrm {tan}\left (c+d\,x\right )}^3}+\frac {\sqrt {2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {-a^5}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{2\,a^3}\right )\,\sqrt {-a^5}\,4{}\mathrm {i}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________